<template>
  <div class="spec-preview">
   <vue-photo-zoom-pro 
      :high-url="skuDefaultImg"
      :out-zoomer="true" 
      :width="200" 
      :height="200"
    >
      <img :src="skuDefaultImg">
    </vue-photo-zoom-pro>
  </div>
</template>

<script>
import vuePhotoZoomPro from 'vue-photo-zoom-pro'
import 'vue-photo-zoom-pro/dist/style/vue-photo-zoom-pro.css'
  export default {
    name: "Zoom",
    props:['skuDefaultImg'],
    components:{
      vuePhotoZoomPro
    }
  }
</script>

<style lang="less">
 .spec-preview {
  position: relative;
  width: 400px;
  height: 400px;
  border: 1px solid #ccc;
  img {
    width: 100%;
    height: 100%;
  }
  .zoomer {
    z-index: 5;
    top: 0 !important;
    left: 10px !important;
  }
  .selector {
    background-color: rgba(255, 0, 0, 0.327);
  }
}
</style>